package com.bingxue.edu.management.education.model.entity;

import com.bingxue.edu.common.enums.EnrollStatusEnum;
import com.bingxue.edu.common.enums.GenderEnum;
import com.bingxue.edu.framework.common.model.BusinessEntity;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 学员实体
 *
 * @author panbo
 * @since 2024/07/25 00:02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("edu_student")
public class Student extends BusinessEntity {

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "姓名拼音")
    private String namePinyin;

    @Schema(description = "家长ID")
    private String parentId;

    @Schema(description = "家长手机号")
    private String parentPhone;

    @Schema(description = "家长关系")
    private String parentRelation;

    @Schema(description = "招生来源")
    private String source;

    @Schema(description = "性别")
    private GenderEnum gender;

    @Schema(description = "生日")
    private LocalDate birthdate;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "入学年份")
    private Integer admissionYear;

    @Schema(description = "就读学校")
    private String fulltimeSchool;

    @Schema(description = "学生状态")
    private EnrollStatusEnum enrollStatus;

    @Schema(description = "备注")
    private String remark;

}
